import request from "../../utils/request";
import type { addMeetingForm,baseResponseData} from "./type";

//统一管理接口
enum API{
    ADD_MEETING_URL = "/meeting/addmeeting",  // 添加会议接口
    GET_MEMBERLIST='/meeting/members'

}


//暴露请求函数
export const addMeetingAPI=(meetingData:addMeetingForm)=>request.post<any,baseResponseData>(API.ADD_MEETING_URL,meetingData)

export const getMemberListAPI=(meetingId:number)=>request.get<any,any>(API.GET_MEMBERLIST,{params:{meetingId}})


